Repository navigation
Conversation
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
@ehelms @jeremylenz please review |
|
Why are these special to the flavor? |
|
@ehelms the data are only provided to the satellite flavor only. |
| iop_vulnerability_taskomatic_jobs: "stale_systems:5,delete_systems:30,cacheman:5,exploit_sync:1440,rules_git_sync:1440" | ||
| iop_vulnerability_taskomatic_startup: "cacheman,exploit_sync,rules_git_sync" |
There was a problem hiding this comment.
If this is specific to the Satellite flavor, could you please mention that explicitly? This would help prevent confusion in the future.
| iop_vulnerability_taskomatic_jobs: "stale_systems:5,delete_systems:30,cacheman:5,exploit_sync:1440,rules_git_sync:1440" | |
| iop_vulnerability_taskomatic_startup: "cacheman,exploit_sync,rules_git_sync" | |
| # Satellite provides exploit data and rules metadata, so enable the | |
| # vulnerability taskomatic sync jobs for those datasets in this flavor. | |
| iop_vulnerability_taskomatic_jobs: "stale_systems:5,delete_systems:30,cacheman:5,exploit_sync:1440,rules_git_sync:1440" | |
| iop_vulnerability_taskomatic_startup: "cacheman,exploit_sync,rules_git_sync" |
|
In the steps to reproduce, you mentioned "Deploy with satellite flavor." However, in the current upstream The PR test plan currently says: I would suggest making it more precise: This makes it clear that IoP must be explicitly enabled to reproduce the issue. |
|
This test needs to be updated to reflect the changes. |
|
The docs currently mention taskomatic as running only: File: Current line found: | `iop-service-vuln-taskomatic` | service | Periodic job scheduler (stale_systems, delete_systems, cacheman) |Suggested update: | `iop-service-vuln-taskomatic` | service | Periodic job scheduler. Default jobs are `stale_systems`, `delete_systems`, and `cacheman`; Satellite flavor also enables `exploit_sync` and `rules_git_sync`. | |
Not the flavor since it lives here. I assume you mean only present in the RH images? |
|
@amolpati30 Updated. Thanks for the review.
@ehelms yes, downstream images. |
Sets iop_vulnerability_taskomatic_jobs and iop_vulnerability_taskomatic_startup to do exploit_sync and rules_git_sync.
44deacd to
6137948
Compare
There was a problem hiding this comment.
🔇 Additional comments (3)
src/vars/flavors/satellite.yml (1)
38-47: LGTM!tests/feature/iop/test_vulnerability.py (1)
96-105: LGTM!docs/architecture/iop.md (1)
137-137: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Document the Satellite-specific jobs.
The description is now generic. It no longer names the jobs that run. Readers cannot tell that
exploit_syncandrules_git_syncrun only for the Satellite flavor. The PR discussion requested this detail. Name the default jobs and the Satellite-only jobs.📝 Proposed fix
-| `iop-service-vuln-taskomatic` | service | Periodic job scheduler for data synchronization and maintenance tasks | +| `iop-service-vuln-taskomatic` | service | Periodic job scheduler. Runs `stale_systems`, `delete_systems`, and `cacheman`. The Satellite flavor also runs `exploit_sync` and `rules_git_sync` |
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7f69b93f-c91f-4651-983a-5d0b158fa17b
📒 Files selected for processing (3)
docs/architecture/iop.mdsrc/vars/flavors/satellite.ymltests/feature/iop/test_vulnerability.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
|
Latest errors from the pipelines (those need retry): srpm: and regular test on setup Vagrant |
Why are you introducing these changes? (Problem description, related links)
Satellite flavor needs to explicitly enable sync of exploits data and rules metadata.
What are the changes introduced in this pull request?
Sets iop_vulnerability_taskomatic_jobs and iop_vulnerability_taskomatic_startup variables to additionally run
exploit_syncandrules_git_syncjobs in IoP Vulnerability Taskomatic.How to test this pull request
Steps to reproduce:
foremanctl deploy --flavor satellite --add-feature iopiop-service-vuln-taskomatic.servicethat it includesexploit_syncandrules_git_syncjobs in env vars.Checklist